To solve my eariler problems with Crystal Reports, I upgraded to CR 9. This solved the deployment issue I was having, but caused a new problem on my system.
When using a crystal report inside Visual Studio, it automatically created a strong named class to go along with the report. A custom tool is executed that generates this code for each report. however, after the upgrade, any new reports I added to any project failed to generate the class files. I wocould get an error that said:
"The cust
Failed to Load file or
ProgramSet "crystaldecisions. crystalreports. Engine ...... Or find the SDK/V2.0/bootstrapper/packages/crystalreports/crredist2005_x86.msi in the vs installation directory on the machine you developed.
And the SDK/V2.0/bootstrapper/packages/crystalreports/ZH-CHS/crredist2005_x86_chs.msi files, you can install them once on the target machine @ Chen
A better way is to package the relevant Assembly into the installation and de
Http://lwl0606.cmszs.com/archives/vs2005-load-crystaldecisions-web.html
Under the vs2005 installation directory, find the republishable crystal report installer and Chinese package:
\ Microsoft Visual Studio 8 \ SDK \ v2.0 \ BootStrapper \ Packages \ CrystalReports
Install the following OK
Add Config
Directory:I. IntroductionIi. Concepts and PrinciplesIii. Problems1. compiler error message: 2. When copying the Crystal Report viewer, "control creation error" is displayed ".3. When creating the Crystal Report viewer, the "control creation error" is displayed ".4. analyzer error message: the base class includes the field "crystalreportviewer1", but its type (crystaldecisions. Web. crystalreportviewer) and control (
Main steps for implementing dynamic ASP. NET Crystal Reports:
1. Insert formulafields and Text object in the ASP. NET Crystal Report.
2. In the programASP. NET Crystal Report class name crystalreport1 in the dim dry as new crystalreport1 Project'Text 1Dry. reportdefinition. reportobjects. Item ("text1"). Left = 12' typographicalDry. reportdefinition. reportobjects. Item ("text1"). objectformat. enablecangrow = trueDim gettextobject1 as crystaldecisions
Beginners often think that a crystal report is like a DataGrid, giving it a data source, and then it will be displayed.
However, this kind of dynamic crystal report cannot be implemented, but it just needs to be implemented in turn. If it is absolutely necessary, ask the crystal developer.
The following describes how to implement it. The principle is as follows. You need to call it by yourself.
The main steps are as follows:
1. Insert formulafields and Text object in the crystal report. This is
Beginners often think that ASP. NET Crystal Reports give them a data source like a datagrid, and then it will be displayed. Actually not. However, this kind of dynamic ASP. NET Crystal report cannot be implemented, but it only needs to be implemented in disguise. If it is absolutely necessary, ask the crystal developer.
The following describes how to implement dynamic ASP. NET Crystal Reports. The principle is as follows. You need to call these statements on your own.
Main steps for implementing
separately (the rest of the report page is not displayed ). This viewer can be integrated into web applications to display specific report objects to users separately (users do not have to see the rest of the report ).
You can create report component hyperlinks in report designer or by using code, but use their functions in report viewer.----------------------------------------------3. crystalreportpartsviewer classSeeCrystalreportpartsviewer member | cryst
Problem:In the crystal report, because the fields of the data source are not fixed, can I dynamically add fields at runtime, just like dynamically adding controls in winform? (Updated: 2003-11-05)--------------------------------------Solution:Use "formula field"1. Define several "formula fields" according to the maximum number of fields, formulafeild1, formulafeild2 ......, The formula is null;2. Place the "formula field" in the "details" order;3. dynamically assign "formula field" to "specific
after strings. I guess they are used for internationalization pages, but I modifiedStrings_zh, JS, strings_en.js, no effect.3: After the crystal report is displayed in the browser, the display page is closed. The crystal report is still connected to the database (select * from V $ session can be used to view the number of Oracle connections ).In viewer. jsp, add the following disconnect statement:Viewer. Dispose ();Rptsource. Dispose ();Only one page of reports can be displayed. Printing and ex
internationalization pages, but I modifiedStrings_zh, JS, strings_en.js, no effect.3: After the crystal report is displayed in the browser, the display page is closed. The crystal report is still connected to the database (select * from V $ session can be used to view the number of Oracle connections ).In viewer. jsp, add the following disconnect statement:Viewer. Dispose ();Rptsource. Dispose ();Only one page of reports can be displayed. Printing and exporting cannot work.
The above problems h
In ASP. NET, the crystal report does not provide the report export and printing functions as in Windows form. We need to add it by ourselves.
Code Here is a demo:
Export:Myreport reportdoc = new myreport (); // table namePrivate void btnexport_click (Object sender, system. eventargs E){Crystaldecisions. Shared. diskfiledestinationoptions diskopts = new crystaldecisions. Shared. diskfiledestinationoption
, suchCrystaldecisions, crystalreports. Engine. dll, crystaldecisions. Web. dll,And crystaldecisions. Windows. Forms. dll ......Managed_chs.msm is the Chinese version of this moduleLanguage support.
Database_access.msm this module contains the database driver, the connection with different databases, and the documents and chart components that export reports in the RTF and HTML formats.
Database_access_chs.
In ASP. NET, the crystal report does not provide the report export and printing functions as in Windows form. We need to add code to control it by ourselves. Here is a demo:
Export:Myreport reportdoc = new myreport (); // table namePrivate void btnexport_click (Object sender, system. eventargs E){Crystaldecisions. Shared. diskfiledestinationoptions diskopts = new crystaldecisions. Shared. diskfiledestinati
using system; using system. collections; using system. componentmodel; using system. configuration; using system. data; using system. drawing; using system. web; using system. web. sessionstate; using system. web. ui; using system. web. UI. webcontrols; using system. web. UI. htmlcontrols; // introduce two dll of the crystal report using crystaldecisions. shared; using crystaldecisions. crystal
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.